<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
	String path = request.getContextPath();
	request.setAttribute("path", path);//只是为了让el表达式更短一些
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<base href="<%=basePath%>">

<title>登录</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta name="expires" content="0">
<meta name="keywords" content="keyword1,keyword2,keyword3">
<meta name="description" content="This is my page">
<link rel="icon" href="favicon.ico">

<!-- Bootstrap core CSS -->
<link href="${path}/res/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap theme -->
<link href="${path}/res/css/bootstrap-theme.min.css" rel="stylesheet">

<link href="${path}/res/css/login.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
      <script src="${path}/res/js/html5shiv.min.js"></script>
      <script src="${path}/res/js/respond.min.js"></script>
    <![endif]-->

</head>

<body class="container">
	<jsp:include page="/header.jsp"></jsp:include>
	<!-- =======================header=========================== -->


	<div class="container">
		<div class="hidden alert alert-warning alert-dismissible col-sm-offset-3 col-sm-6" role="alert">
			<button type="button" class="close" data-dismiss="alert">
				<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
			</button>
			<strong>Warning!</strong> <s:fielderror/>
		</div>
		<form class="form-signin" role="form" action="loginCheck"
			method="post">
			<h2 class="form-signin-heading">请登录</h2>
			<input type="text" class="form-control" placeholder="学号"
				name="user.id" value="${name}" required autofocus> <input
				type="password" class="form-control" placeholder="密码"
				name="user.password" value="${password}" required> <input
				type="hidden" id="forwardUrl" name="forwardUrl"
				value="${forwardUrl}">
			<div class="checkbox">
				<label> <input type="checkbox" name="remember" value="true"
					checked="checked"> 记住我
				</label>
			</div>
			<button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
		</form>
		<div id="info"></div>
	</div>
	<!-- /container -->




	<!-- ========================footer========================== -->
	<jsp:include page="/footer.jsp"></jsp:include>
	<!-- Bootstrap core JavaScript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="${path}/res/js/jquery.min.js"></script>
	<script src="${path}/res/js/bootstrap.min.js"></script>
	<script src="${path}/res/js/login.js"></script>
</body>
</html>
